#pragma once

#include "BaseForm.h"
#include "Resource.h"
// CConsoleForm dialog\\

class CRedirect;

class CConsoleForm : public CBaseForm
{
	DECLARE_DYNAMIC(CConsoleForm)

public:
	CConsoleForm(CWnd* pParent = NULL);   // standard constructor
	virtual ~CConsoleForm();

	static CBaseForm* CreateShow(CWnd* pParent)
	{
		CConsoleForm* pform = new CConsoleForm(pParent);

		//CStockNetWorthForm* 

		pform->Create(CConsoleForm::IDD,pParent);

		pform->ModifyStyle(0, WS_EX_CONTROLPARENT);
		pform->ShowWindow(SW_SHOW);
		return pform;
	}

// Dialog Data
	enum { IDD = IDD_DIALOG_MAIN };

	//CButton	m_BtnOk;
	CEdit	m_EditRun;
	CEdit	m_EditOutput;
	CButton	m_BtnStop;
	CButton	m_BtnRun;
	CButton	m_BtnBrowse;
	BOOL	m_bClearOutput;
	CFont		m_Font;
	CRedirect	*m_pRedirect;



	void UpdateControls();

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()

	virtual CString GetTitle() const;
	virtual BOOL OnInitDialog();

	virtual BOOL AllowClose();

public:
	
	afx_msg void OnBnClickedButtonBrowse();
	afx_msg void OnBnClickedButtonRun();
	afx_msg void OnBnClickedButtonStop();
	afx_msg void OnEnUpdateEditRun();
	
};
